import axiosInstance from "../axiosInstance";

const orderInfo = {
    submitOrder(orderInfo) {
        return axiosInstance.post("/orderInfo/submitOrder", orderInfo)
    },
    findById(id) {
        return axiosInstance.get("/orderInfo/findById", {

            params: { id }
        })
    },
    getMyOrderListByPage(pageIndex) {
        return axiosInstance.get("/orderInfo/getMyOrderListByPage", {
            params: pageIndex

        })
    },
    userPayOrder(id) {
        return axiosInstance.get("/orderInfo/userPayOrder", {
            params: { id }
        })
    }

}
export default orderInfo